package com.shigu.admin.common.vo;

import com.shigu.admin.common.enums.ParamType;

import java.io.Serializable;
import java.util.List;

/**
 * 列参数
 * Created by zhaohongbo on 17/7/10.
 */
public class ParamVO implements Serializable{
    /**
     * 主键
     */
    private Long paramId;
    /**
     * 字段
     */
    private String field;
    /**
     * 类型
     */
    private ParamType ptype;

    /**
     * 如果是选择,这里是选择子
     */
    private List<OptionVO> options;
    /**
     * 默认值
     */
    private String defaultValue;
    /**
     * 列标题
     */
    private String fieldText;

    public String getField() {
        return field;
    }

    public void setField(String field) {
        this.field = field;
    }

    public ParamType getPtype() {
        return ptype;
    }

    public void setPtype(ParamType ptype) {
        this.ptype = ptype;
    }

    public List<OptionVO> getOptions() {
        return options;
    }

    public void setOptions(List<OptionVO> options) {
        this.options = options;
    }

    public String getDefaultValue() {
        return defaultValue;
    }

    public void setDefaultValue(String defaultValue) {
        this.defaultValue = defaultValue;
    }

    public String getFieldText() {
        if (fieldText == null) {
            return field;
        }
        return fieldText;
    }

    public void setFieldText(String fieldText) {
        this.fieldText = fieldText;
    }

    public Long getParamId() {
        return paramId;
    }

    public void setParamId(Long paramId) {
        this.paramId = paramId;
    }
}

